
<html>
  
<head>
<title>搜索列表</title>
<meta charset="UTF-8">
<link rel="stylesheet" href="../static/style/all.css">

<style>
.divname{color:#888} 

.divlabel{   
  	color:white;  
} 
</style>
</head>
<body>
<div>
<form action="/search/" method="get" id="searchform">
    <fieldset class="search">
         <input type="text" class="box" name="searchContent" id="searchContent" class="inputText" placeholder="关键词" x-webkit-speech>
         <button class="btn" title="SEARCH"> </button>
    </fieldset>
</form>
</div>
<div >
<p>搜索 '{{ query }}'
<p>推荐搜索词条：
 {% for q in recommandQ %}
 	<a href = "?page=1&searchContent={{ q }}" ><font size=2>{{q}}</font></a>
 {% endfor %}
<HR style="FILTER: alpha(opacity=100,finishopacity=0,style=3)" width="100%" color=#987cb9 SIZE=3>
{% if page_objects %}
    {% for acticle in  page_objects.object_list %}
    	{% autoescape off  %}
        <p><a href = "{{acticle.url}}" target=_blanks><font size=6>{{ acticle.title }}</font></a><div class="divlabel"><span style="background:#F24">{{acticle.label}}</span></div>
        <p><div class="divname">作者：{{acticle.author}} &nbsp 日期：{{acticle.publishAt}}</div>
        <p title="{{acticle.allContent}}">{{acticle.content}}
       	</hr>
       	{% endautoescape %} 
    {% endfor %}
{% else %}
    <p>No article found.
{% endif %}
</div>

<p class="page_container">
{% if page_objects.has_previous %}
<a href="?page={{ page_objects.previous_page_number }}&searchContent={{ query }}" title="Pre">上一页</a> {% endif %}
{% for p in page_range %}
{% ifequal p page_objects.number %}
<span style="font-size:16px;" title="当前页"><b>{{p}}</b></span>        
{% else %}<a href="?page={{p}}&searchContent={{ query }}" title="第{{p}}页">{{p}}</a>{% endifequal %}
{% endfor %}     
{% if page_objects.has_next %}
<a href="?page={{ page_objects.next_page_number }}&searchContent={{ query }}" title="Next">下一页</a>
 {% endif %}  
<b>
{%if page_objects.paginator.num_pages%}共 {{ page_objects.paginator.num_pages }} 页{%endif%}
</b>
</p>

</body>
</html>